package cn.stylefeng.guns.rabbitmq.config;

import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.boot.autoconfigure.amqp.SimpleRabbitListenerContainerFactoryConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean
    public Queue queuePinCardSubmit() {
        return new Queue("pin_card_submit",true);
    }

    @Bean
    public Queue queuePinCardNotify() {
        return new Queue("pin_card_notify",true);
    }

    @Bean
    public Queue queueBatchCardSubmit() {
        return new Queue("batch_pin_card_submit",true);
    }

}
